package com.airlines.crewassignment.dao.crewlocation;

import com.airlines.crewassignment.entity.crewlocation.CrewAbsent;

import java.util.List;

/**
 * @author xianghaini
 * @date 2018/07/04 16:23:40
 * @company xxxx Airlines
 * @description  不在位信息
 */
public interface CrewAbsentMapper {

    /**
     * 添加 （返回主键ID）
     * @param crewAbsent
     * @return
     */
    int insert(CrewAbsent crewAbsent);


    /**
     * 物理删除
     * @param id
     * @return
     */
    int delete(Integer id);


    /**
     * 修改
     * @param crewAbsent
     * @return
     */
    int update(CrewAbsent crewAbsent);


    /**
     * 通过主键查询
     * @param id
     * @return
     */
    CrewAbsent get(Integer id);

    /**
     * 多条件查询
     * @param crewAbsent
     * @return
     */
    List<CrewAbsent> list(CrewAbsent crewAbsent);

    /**
     * 多条件模糊查询
     * @param crewAbsent
     * @return
     */
    List<CrewAbsent> listByFuzzy(CrewAbsent crewAbsent);

}
